

import datetime
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models


class Migration(migrations.Migration):

    dependencies = [
        ('df_goods', '0002_auto_20230603_2157'),
        ('df_user', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='GoodsBrowser',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('browser_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='浏览时间')),
                ('good', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='df_goods.GoodsInfo', verbose_name='商品ID')),
            ],
            options={
                'verbose_name': '用户浏览记录',
                'verbose_name_plural': '用户浏览记录',
            },
        ),
        migrations.CreateModel(
            name='Information',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('isDelete', models.BooleanField(default=False)),
                ('ctitle', models.CharField(max_length=20, verbose_name='商品名称')),
                ('cusername', models.CharField(max_length=20, verbose_name='买家昵称')),
                ('cusername1', models.CharField(max_length=20, verbose_name='卖家昵称')),
                ('ccontent_chart', tinymce.models.HTMLField(max_length=200, verbose_name='消息内容')),
                ('ccheck', models.BooleanField(default=False, verbose_name='消息是否已读')),
                ('date_publish', models.DateTimeField(default=datetime.datetime.now, verbose_name='发表时间')),
            ],
            options={
                'verbose_name': '用户消息',
                'verbose_name_plural': '用户消息',
            },
        ),

        migrations.AlterModelOptions(
            name='userinfo',
            options={'verbose_name': '用户信息', 'verbose_name_plural': '用户信息'},
        ),
        migrations.AddField(
            model_name='userinfo',
            name='uage',
            field=models.CharField(default='', max_length=10, verbose_name='年龄'),
        ),
        migrations.AddField(
            model_name='userinfo',
            name='ucheck_passOrfail',
            field=models.BooleanField(default=False, verbose_name='认证审批'),
        ),
        migrations.AddField(
            model_name='userinfo',
            name='ulogo',
            field=models.FileField(default='default.jpg', upload_to='images', verbose_name='用户头像'),
        ),
        migrations.AddField(
            model_name='userinfo',
            name='uname_passOrfail',
            field=models.BooleanField(default=True, verbose_name='允许登录'),
        ),
        migrations.AddField(
            model_name='userinfo',
            name='upersonInf',
            field=models.CharField(default='', max_length=200, verbose_name='个人简介'),
        ),
        migrations.AddField(
            model_name='userinfo',
            name='urealname',
            field=models.CharField(default='', max_length=20, verbose_name='真实姓名'),
        ),
        migrations.AddField(
            model_name='userinfo',
            name='usex',
            field=models.CharField(default='', max_length=10, verbose_name='性别'),
        ),
        migrations.AddField(
            model_name='userinfo',
            name='uzhengjian_img',
            field=models.FileField(default='', upload_to='images/zhengjian_img', verbose_name='证件图片'),
        ),
        migrations.AddField(
            model_name='userinfo',
            name='uzhengjian_tel',
            field=models.CharField(default='', max_length=18, verbose_name='证件号码'),
        ),
        migrations.AddField(
            model_name='userinfo',
            name='uzhengjian_type',
            field=models.CharField(default='', max_length=20, verbose_name='证件类型'),
        ),
        migrations.AlterField(
            model_name='userinfo',
            name='uaddress',
            field=models.CharField(default='', max_length=100, verbose_name='地址'),
        ),
        migrations.AlterField(
            model_name='userinfo',
            name='uemail',
            field=models.EmailField(max_length=254, unique=True, verbose_name='邮箱'),
        ),
        migrations.AlterField(
            model_name='userinfo',
            name='uname',
            field=models.CharField(max_length=20, unique=True, verbose_name='用户名'),
        ),
        migrations.AlterField(
            model_name='userinfo',
            name='uphone',
            field=models.CharField(default='', max_length=11, verbose_name='手机号'),
        ),
        migrations.AlterField(
            model_name='userinfo',
            name='upwd',
            field=models.CharField(max_length=40, verbose_name='用户密码'),
        ),
        migrations.AlterField(
            model_name='userinfo',
            name='ushou',
            field=models.CharField(default='', max_length=20, verbose_name='收货名称'),
        ),
        migrations.AlterField(
            model_name='userinfo',
            name='uyoubian',
            field=models.CharField(default='', max_length=6, verbose_name='邮编'),
        ),
        migrations.AddField(
            model_name='information',
            name='cinformation',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='df_user.UserInfo', verbose_name='消息'),
        ),
        migrations.AddField(
            model_name='goodsbrowser',
            name='user',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='df_user.UserInfo', verbose_name='用户ID'),
        ),
    ]
